//
//  AppDelegate.swift
//  MAGweibo
//
//  Created by MagicaL on 15/7/28.
//  Copyright © 2015年 MagicaL. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
    
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        window?.backgroundColor = UIColor.whiteColor()
        window?.rootViewController = MainViewController() // 不能忘后面的括号就代表 alloc init 实例化对象
        window?.makeKeyAndVisible()
        
        setupApperence()
        
        return true
    }
    // 在AppDelegate 设置外观 一经设置全局有效 尽早设置
    func setupApperence() {
        
        UINavigationBar.appearance().tintColor = UIColor.orangeColor()
        UITabBar.appearance().tintColor = UIColor.orangeColor()
    
    }
    
    
}

